package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 岗位信息表
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
@TableName("t_post")
public class Post extends Model<Post> {

private static final long serialVersionUID=1L;

    /**
     * 岗位ID
     */
                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
    /**
     * 岗位编码
     */
                private String sn;
    /**
     * 岗位名称
     */
                private String name;
    /**
     * 显示顺序
     */
                private Integer sort;
    /**
     * 状态（0正常 1停用）
     */
                private String status;
    /**
     * 创建者
     */
    @TableField("create_by")
                private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_time")
                private Date createTime;
    /**
     * 更新者
     */
    @TableField("update_by")
                private String updateBy;
    /**
     * 更新时间
     */
    @TableField("update_time")
                private Date updateTime;
    /**
     * 备注
     */
                private String remark;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public String getSn(){
            return sn;
            }

        public void setSn(String sn) {
            this.sn = sn;
            }

    public String getName(){
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public Integer getSort(){
            return sort;
            }

        public void setSort(Integer sort) {
            this.sort = sort;
            }

    public String getStatus(){
            return status;
            }

        public void setStatus(String status) {
            this.status = status;
            }

    public String getCreateBy(){
            return createBy;
            }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
            }

    public Date getCreateTime(){
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public String getUpdateBy(){
            return updateBy;
            }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
            }

    public Date getUpdateTime(){
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

    public String getRemark(){
            return remark;
            }

        public void setRemark(String remark) {
            this.remark = remark;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "Post{" +
                ", id=" + id +
                ", sn=" + sn +
                ", name=" + name +
                ", sort=" + sort +
                ", status=" + status +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", remark=" + remark +
        "}";
        }
        }
